document.addEventListener('DOMContentLoaded', function () {
    // 等待HTML加载完成
    const forms = document.querySelectorAll('form');
    const textareas = document.querySelectorAll('textarea');

    textareas.forEach(textarea => {
        textarea.addEventListener('click', () => {
            forms.forEach(form => {
                if (form === textarea.parentElement) {
                    form.className = 'check-form';
                } else {
                    form.className = 'form';
                }
            });
        });
    });
});
